package com.ruoyi.system.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 小区对象 sys_housing
 * 
 * @author ruoyi
 * @date 2024-08-07
 */
@Data
public class SysHousing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 小区id */
    private Long housingId;

    /** 小区名称 */
    @Excel(name = "小区名称")
    private String housingName;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 地区id */
    private Long areaId;
    @Excel(name = "地区名称")
    private String areaName;

    /** 街道id */
    private Long streetId;
    @Excel(name = "街道")
    private String streetName;

    /** 社区id */
    private Long communityId;
    @Excel(name = "社区名称")
    private String communityName;

    /** 小区地址 */
    @Excel(name = "小区地址")
    private String address;

    /** 小区类型 */
    @Excel(name = "小区类型")
    private String housingType;

    /** 小区状态（0正常 1停用） */
    @Excel(name = "小区状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 热水费id */
    private Long heatFeeId;

    private String heatFeeName;

    /** 储水量 */
    private BigDecimal tankVolume;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("housingId", getHousingId())
            .append("housingName", getHousingName())
            .append("deptId", getDeptId())
            .append("areaId", getAreaId())
            .append("streetId", getStreetId())
            .append("communityId", getCommunityId())
            .append("address", getAddress())
            .append("housingType", getHousingType())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
